package com.zuihai.app.mvp.model.api.service;

import com.zuihai.app.mvp.model.entity.CheckUpdataResponse;
import com.zuihai.app.mvp.model.entity.ReadMessage;
import com.zuihai.app.mvp.model.entity.mainhome.MainHomeClass;

import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;
import rx.Observable;

/**
 * Created by Administrator on 2017/7/6 0006.
 */

public interface MainService {

    @POST("UpdateInq")
    Observable<CheckUpdataResponse> checkUpdata();

    @POST("CategoryInq")
    Observable<MainHomeClass> mainItem();

    /**
     * 消息是否已读
     * @param userId    用户ID
     * @return
     */
    @FormUrlEncoded
    @POST("Message_NoReadInq")
    Observable<ReadMessage> isRead(@Field("my_id") String userId);

}
